<!DOCTYPE html>
<html>
  <head>
    <title>角色管理-列表</title>
 		<#include "fsoft-common.ftl" />
  </head>
  <body>
    <div class="layui-fluid">
      <div class="layui-row layui-col-space5">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                  <form class="layui-form" action="" id="fsoftSearchForm" lay-filter="fsoftSearchForm" autocomplete="off">
                    <div class="layui-inline layui-show-xs-block">
                      <input type="text" class="layui-input" id="code" name="code" placeholder="角色编号精确搜索" >
                    </div>
                    <div class="layui-inline layui-show-xs-block">
                      <input type="text" class="layui-input" id="name" name="name" placeholder="角色名称模糊搜索" >
                    </div>
                    <div class="layui-inline layui-show-xs-block">
                      <button class="layui-btn layui-btn-normal" lay-submit lay-filter="sreach">
                        <i class="layui-icon layui-icon-search"></i>搜索
                      </button>
                    </div>
                  </form>
                </div>
                <div class="layui-card-body">
                  <table class="layui-table" lay-filter="sysRoleTable" id="sysRoleTable"></table>
                </div>
            </div>
        </div>
      </div>
    </div> 
  </body>
  <#include "fsoft-common-foot.ftl" />
	<#--  工具条  -->
	<script type="text/html" id="batchBtnToolBar">
		<div class="layui-btn-container">
			<@perms value="sys:role:add">
				<button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="add">
					<i class="fa fa-plus" aria-hidden="true"></i> 新增
				</button>
			</@perms>
			<@perms value="sys:role:remove">
				<button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="removeBatch">
					<i class="fa fa-trash" aria-hidden="true"></i> 删除
				</button>
			</@perms>
		</div>
	</script>
	<#-- 每一行最后一列的“操作” -->
	<script type="text/html" id="sysrole-tabs">
		<@perms value="sys:role:info">
    <button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="permission">设置权限</button>
		</@perms>
		<@perms value="sys:role:edit">
    <button class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit">编辑</button>
		</@perms>
		<@perms value="sys:role:remove">
    <button class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</button>
		</@perms>
	</script>
	<script type="text/html" id="switchStatus">
	  	<#-- 这里的 checked 的状态 -->
	  	<input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="正常|禁用" lay-filter="status" {{ d.status == 1 ? 'checked' : '' }} {{ d.isSystem == 1 ? 'disabled' : '' }}>
	</script>
	<script type="text/javascript" src="${request.contextPath}/static/fsoft-web/role/sysrole-list.js?v=201911"></script>
</html>